/*
 *       This file is part of NWFramework.
 *       Copyright (c) InCrew Software and Others.
 *       (See the AUTHORS file in the root of this distribution.)
 *
 *       NWFramework is free software; you can redistribute it and/or modify
 *       it under the terms of the GNU General Public License as published by
 *       the Free Software Foundation; either version 2 of the License, or
 *       (at your option) any later version.
 *
 *       NWFramework is distributed in the hope that it will be useful,
 *       but WITHOUT ANY WARRANTY; without even the implied warranty of
 *       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 *       GNU General Public License for more details.
 * 
 *       You should have received a copy of the GNU General Public License
 *       along with NWFramework; if not, write to the Free Software
 *       Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 */
#ifndef NWSTREAMBLOCK_H_
#define NWSTREAMBLOCK_H_

#include "INWStreamBlock.h"

//********************************************************************
//
//********************************************************************
class NWStreamBlock : public INWStreamBlock
{
public:
    bool                  isOk            () const  { return mInit; }

    // INWStreamBlock
    virtual ENWStreamType getType() const;
    virtual ENWStreamSubType getSubType() const;

protected:
    NWStreamBlock  ();
    virtual    ~NWStreamBlock ()                      { NWStreamBlock::done(); }
    
    virtual bool          init            (ENWStreamType _type, ENWStreamSubType _subType);
    virtual void          done            ();

private:
    bool          mInit : 1;
    ENWStreamType mType;
    ENWStreamSubType mSubType;
};

#endif
